<template>
  <div class="z-logo" :class="{ collapsed: collapse }">
    <img :src="Logo" alt="logo" class="logo" />
    <div class="logo-desc">
      <div class="title">评分系统</div>
      <!-- <div class="subtitle">this is blog</div> -->
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from "vue";
import { useRoute } from "vue-router";
import { collapse } from "@/components/admin/menu/index";
import Logo from "@/assets/images/logo/logo.png";

const route = useRoute();
</script>
<style scoped lang="less">
.z-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  &.collapsed {
    .logo {
      height: 40px;
      width: 40px;
      // transform: translateX(52px);
    }
    .logo-desc {
      display: none;
      // transform: scale(0);
      // transform-origin: left;
      // opacity: 0;
    }
  }
  .logo {
    height: 50px;
    width: 50px;
    transition: all 0.3s;
  }
  .logo-desc {
    margin-left: 10px;
    transition: all 0.3s;
    div:nth-of-type(1) {
      font-size: 22px;
      font-weight: 600;
    }
    div:nth-of-type(2) {
      font-size: 12px;
      margin-top: 1px;
    }
  }
}
</style>
